package com.xz.stu.server.controller;

import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.framework.common.pojo.PageResult;
import com.xz.stu.server.service.EnrollmentService;
import com.xz.stu.server.vo.grade.GradePageVo;
import com.xz.stu.server.vo.grade.GradeStudent;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;


@RestController
@RequestMapping("admin-api/student/grade")
public class GradeController {
    @Resource
    private EnrollmentService enrollmentService;
    //成绩查询
    @PostMapping("/getGrade")
    public CommonResult<PageResult<GradeStudent>> getGrade(@RequestBody GradePageVo gradePageVo){
        return CommonResult.success(enrollmentService.getGrade(gradePageVo));
    }
}
